package com.swh.spit.entity;

import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * @author swh
 * @Description tb_pl实体类
 * @date 2021-01-13 17:36:42
 */

@Document(collection = "spit")
public class spit implements Serializable {

    private String id;
    private String content;
    private String userid;
    private String nickname;
    private Integer visits; //浏览数
    private Integer thumbup;//点赞数
    private Date publishtime; //发布日期
    private Integer share; //分享数

    @Override
    public String toString() {
        return "spit{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", userid='" + userid + '\'' +
                ", nickname='" + nickname + '\'' +
                ", visits=" + visits +
                ", thumbup=" + thumbup +
                ", publishtime='" + publishtime + '\'' +
                ", share=" + share +
                '}';
    }

    public Integer getShare() {
        return share;
    }

    public void setShare(Integer share) {
        this.share = share;
    }

    public Date getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(Date publishtime) {
        this.publishtime = publishtime;
    }

    public Integer getThumbup() {
        return thumbup;
    }

    public void setThumbup(Integer thumbup) {
        this.thumbup = thumbup;
    }

    public spit() {
    }

    public spit(String id, String content, String userid, String nickname, Integer visits) {
        this.id = id;
        this.content = content;
        this.userid = userid;
        this.nickname = nickname;
        this.visits = visits;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getVisits() {
        return visits;
    }

    public void setVisits(Integer visits) {
        this.visits = visits;
    }
}



